Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-user is "impulse-button">

With this node you can add a button to an existing dashboard or a new one created by the node. If this button is pressed, it outputs a message from the top output, if the button is released, it outputs a message from the bottom output.

Configuration

dashboard string
Dashboard title to which the button will be added
widget string
Title that will have the widget containing the button.

Outputs

  1. Impulse Value
    Returns the impulse value when the button is pressed
  2. Base Value
    Returns the base value when the button is released